package com.yao.club.reposittory;

import com.yao.club.entity.dto.MallGoodsInfo;
import com.yao.club.entity.dto.MallGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MallGoodsInfoRepository extends JpaRepository<MallGoodsInfo, String>, JpaSpecificationExecutor<MallGoodsInfo> {


    List<MallGoodsInfo>  findMallGoodsInfosByGroupId(Long id);


    List<MallGoodsInfo> findMallGoodsInfosByTitleContaining(String keyword);


    MallGoodsInfo findMallGoodsInfosById(Long goodsId);
}
